package com.example.demo.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;

import java.util.Date;

public class Public_info {
    private static final long serialVersionUID = 397326046912649094L;
    private int id;
    private String public_info_title;
    private String public_info_content;

    /* 注解名称：@JsonIgnore
     作用：在实体类向前台返回数据时用来忽略不想传递给前台的属性或接口。
     Eg：Bean实体中会有某些运维字段，在返回信息给前台的时候，当不希望将对应值也一并返回；
             　　此时可以在对应属性上加上注解JsonIgnore或者，可以在User类上加上注解@JsonIgnoreProperties(value = "{password}")*/
    @JsonIgnore
    private Date create_time;
    @JsonIgnore
    private Date update_time;
    private int isdelete;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPublic_info_title() {
        return public_info_title;
    }

    public void setPublic_info_title(String public_info_title) {
        this.public_info_title = public_info_title;
    }

    public String getPublic_info_content() {
        return public_info_content;
    }

    public void setPublic_info_content(String public_info_content) {
        this.public_info_content = public_info_content;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }

    public int getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(int isdelete) {
        this.isdelete = isdelete;
    }

    @Override
    public String toString() {
        return "Public_info{" +
                "id=" + id +
                ", public_info_title='" + public_info_title + '\'' +
                ", public_info_content='" + public_info_content + '\'' +
                ", create_time=" + create_time +
                ", update_time=" + update_time +
                ", isdelete=" + isdelete +
                '}';
    }
}
